class Solution(object):
    def numOfBurgers(self, tomatoSlices, cheeseSlices):
        if tomatoSlices > 4 * cheeseSlices or tomatoSlices < 2 * cheeseSlices:
            return []
        p0 = (tomatoSlices - 2 * cheeseSlices) / 2
        if p0 == int(p0):
            return [int(p0), cheeseSlices - int(p0)]
        else:
            return []
